//console.log(process.argv);//打印命令主体和参数
var port = 9696;
// 获取特定的参数
const arg1 = process.argv[2]; // '角标2是第一个参数'
if(arg1){
	port = arg1;
}
require('dgram').createSocket("udp4", function (msg, rinfo) {

   console.log(`来自 ${rinfo.address}:${rinfo.port}：${msg}`);

}).bind(port);

console.log(`服务器启动,端口${port}，等待接受数据`);